$OpenBSD: patch-configure,v 1.2 2015/05/28 12:01:15 jca Exp $
--- configure.orig	Sun Jun 29 22:23:17 2014
+++ configure	Tue May 26 19:19:08 2015
@@ -122,6 +122,13 @@ build_config()
 		echo "RDYNAMIC=-rdynamic"
 		echo "LDFLAGS+=-Wl,--no-undefined -Wl,--as-needed"
 		;;
+		OpenBSD)
+		echo "CFLAGS+=-fPIC"
+		echo "CXXFLAGS+=-fPIC"
+		echo "SHFLAGS=-shared"
+		echo "RDYNAMIC=-rdynamic"
+		echo "LDFLAGS+=-Wl,--as-needed"
+		;;
 		MinGW)
 		[ "$optimisations" = "true" ] &&
 			echo "OPTIMISATIONS+=-ffast-math"
